<%--
  Created by IntelliJ IDEA.
  User: dailyblue
  Date: 2023/4/1
  Time: 16:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>转发和重定向区别</title>
</head>
<body>
<h3>8-1.jsp</h3>
<%
    request.setAttribute("A", "1234");
    // 转发
    // request.getRequestDispatcher("8-2.jsp").forward(request,response);
    // 重定向
    response.sendRedirect("8-2.jsp");
%>
</body>
</html>
